<template>
	<!-- 审核提现 -->
	<view class="withdrawal">
		<!-- 底部tabbar导航 -->
		<view class="withdrawal-main">
			<view class="withdrawalMain-box">
				<view class="box-left">用户</view>
				<view class="box-center">
					<text class="num">{{userCommissionCount}}</text>笔待处理
				</view>
				<view class="icon iconfont icon-xiangyoujiantou"></view>
			</view>
			<view class="withdrawalMain-box">
				<view class="box-left">回收员</view>
				<view class="box-center">
					<text class="num">{{partnerCommissionCount}}</text>笔待处理
				</view>
				<view class="icon iconfont icon-xiangyoujiantou"></view>
			</view>
			<view class="withdrawalMain-box">
				<view class="box-left">合伙人</view>
				<view class="box-center">
					<text class="num">{{partnerCommissionCount}}</text>笔待处理
				</view>
				<view class="icon iconfont icon-xiangyoujiantou"></view>
			</view>
		</view>
		<tabBar currentPage="withdrawal"></tabBar>
	</view>
</template>

<script>
	import tabBar from "@/component/count/tabbar.vue"
	import $http from "@/component/commen/api/request.js"
	export default {
		components:{
			tabBar
		},
		data() {
			return {
				collectorCommissionCount: 0,//回收员
				partnerCommissionCount: 0,//合伙人
				userCommissionCount: 0,//用户
			};
		},
		onShow() {
			this.getwithDrawal()
		},
		methods:{
			getwithDrawal(){//获取初始数据
				$http({
					url:`?i=2&t=0&v=2.7.4&from=wxapp&c=entry&a=wxapp&do=admin&op=checkCommissonIndex&&m=wjyk_recycle&sign=81325b78ef0a37fdba4a735c574d69c9`,
					methos:"get",
				}).then(res=>{
					console.log(res)
					this.collectorCommissionCount = res.data.collectorCommissionCount
					this.partnerCommissionCount = res.data.partnerCommissionCount
					this.userCommissionCount = res.data.userCommissionCount
				})
			}
		}
	}
</script>

<style lang="scss">
.withdrawal{
	.withdrawal-main{
		padding: 0 20rpx;
		box-sizing: border-box;
		.withdrawalMain-box{
			padding:35rpx 30rpx;
			box-sizing: border-box;
			background: #fff;
			margin-top: 20rpx;
			border-radius: 30rpx;
			display: flex;
			justify-content: space-between;
			.box-left{
				font-size: 33rpx;
				width: 120rpx;
				// border: 1px solid #000;
				margin-right: 80rpx;
			}
			.box-center{
				// margin-left: 100rpx;
				font-size: 27rpx;
				.num{
					font-size: 33rpx;
					font-weight: bold;
					color: #00b388;
					margin-right: 10rpx;
				}
				
			}
			.icon-xiangyoujiantou{
				margin-left: auto;
			}
		}
	}
}
</style>
